﻿using Yunwei.DAL.Repository;
using Yunwei.IDAL;

namespace Yunwei.DAL
{
    /// <summary>
    /// 简单工厂？
    /// <remarks>创建：2014.02.03</remarks>
    /// </summary>
    public static class RepositoryFactory
    {
        /// <summary>
        /// 文章仓储
        /// </summary>
        //public static IArticleRepository ArticleRepository { get { return new ArticleRepository(); } }


        /// <summary>
        /// 用户仓储
        /// </summary>
        public static IUserRepository UserRepository { get { return new UserRepository(); } }

        public static IShoppingCartRepository ShoppingCartRepository { get { return new ShoppingCartRepository(); } }

        public static IFoodRepository FoodRepository { get { return new FoodRepository(); } }

        public static IFoodIngredientRepository FoodIngredientRepository { get { return new FoodIngredientRepository(); } }

        public static IChefRepository ChefRepository { get { return new ChefRepository(); } }

        public static IRestaurantRepository RestaurantRepository { get { return new RestaurantRepository(); } }

        public static ICategoryRepository CategoryRepository { get { return new CategoryRepository(); } }

        public static IRestaurantVendorRepository RestaurantVendorRepository { get { return new RestaurantVendorRepository(); } }

        public static IRestaurantIngredientRepository RestaurantIngredientRepository { get { return new RestaurantIngredientRepository(); } }

        public static IStaffRepository StaffRepository { get { return new StaffRepository(); } }

        public static IVendorRepository VendorRepository { get { return new VendorRepository(); } }

        public static IVendorIngredientRepository VendorIngredientRepository { get { return new VendorIngredientRepository(); } }

        public static IVendorCustomerRepository VendorCustomerRepository { get { return new VendorCustomerRepository(); } }

        public static IOrderRepository OrderRepository { get { return new OrderRepository(); } }

        public static IOrderFoodRepository OrderFoodRepository { get { return new OrderFoodRepository(); } }

        public static IDinnerTableRepository DinnerTableRepository { get { return new DinnerTableRepository(); }}
    }
}
